package com.study.base.io.file;

import java.io.File;

/**
 * Description:
 * User: Administrator
 * DateTime: 2017/7/2 0002 17:32
 */
public class FileTest {
    public static void main(String[] args) {
        File file = new File("I:/1.txt");
        String name = file.getName();
        System.out.println("name  " + file.getName());
        System.out.println("isdir  " + file.isDirectory());
        System.out.println("exist  " + file.exists());
        File parentTile = file.getParentFile();
        System.out.println("parent  " + file.getParent());
    }
}
